'' ======================================
''
'' DTC Initium General Function File
''
'' File Name: general.txt
'' Default Location: app.path & "\general.txt"
''
'' ======================================
'' COPYRIGHT: 
''
'' March 2006
'' March 2011
'' Pressure Systems, Inc.
'' April 2012
'' Measurement Specialties, Inc.
'' March 2015
'' jANUARY 2020
''
'' TE Connectivity // Measurement Specialties, Inc.
''
''
'' ======================================
'' ======================================

function Configure
configure
endfunction

''
'' ======================================
''

function
endfunction

''
'' ======================================
''

Function Re-Zero
''
'' command the Initium to Re-zero calibrate DTC scanners
''
resync

CA2

resync

EndFunction

''
'' ======================================
''

Function  
EndFunction  

''
'' ======================================
''

Function Display-Data
''
'' Command the Initium to acquire data and display 
'' the data on screen, at default data rate = 2 hz.
''
'' Optionally log data to disk in CSV format
''
showscan

EndFunction  

Function  
EndFunction  

''
'' ======================================
''

Function Log-Data-On
''
'' set LOG-DATA-Switch to TRUE
''
'' data will be logged in printer friendly and CSV formats,
'' or if high-speed data, in binary format 
''
log on

EndFunction


Function Log-Data-Off
''
'' set LOG-DATA-Switch to FALSE
''
'' Data Logging will stop
''
log off

EndFunction


Function
EndFunction

'' ======================================

Function High-Speed-Data
''
'' Command the Initium to acquire data at maximum
'' data rate.  Data may be optionally logged to disk.
''
'' Data rate is shown, as are data values for the selected
'' scanner, updated every 5 seconds
''

''speed
speed showstats

EndFunction

''
'' ======================================
''

Function  
EndFunction  

''
'' ======================================
''
''  If data is logged using High-Speed-Data, it is written
''  into a BINARY DATA FILE.  
''
''  A function is provided to convert the bindary data file
''  into a CSV file
''  

Function Convert-to-CSV

playback

EndFunction


'' ======================================

Function  
EndFunction  

'' ======================================
'' ======================================

Function Cal-Position
''
'' Command the Initium to move the bi-stable
'' valve of each DTC scanner into the 
'' CALIBRATE position
''

cv1 calpos 5
printbuffer

EndFunction  

Function Run-Position 
''
'' Command the Initium to move the bi-stable
'' valve of each DTC scanner into the 
'' RUN position
''
cv1 runpos 5
printbuffer

EndFunction  

'' ======================================
'' ======================================



